home *** CD-ROM | disk | FTP | other *** search
- * Program.: Pfsxfer.PRG
- * Author..: Steve Silverwood and Quinn Wildman
- * Date....: August 1, 1985
- * Version.: dBASE III, any version
- * Note(s).: APPENDS a PFS;FILE datafile onto a dBASE III database file.
- *
- SET TALK OFF
- CLOSE DATABASES
- CLEAR
- ACCEPT " Enter one field database filename " TO db1
- ACCEPT "Enter multi field database filename " TO db2
- ACCEPT " Enter name of PFS print file " TO pfs
- INPUT " Enter how many fields " TO fields
- ACCEPT " Enter dummy name " TO dum
- SELECT 2
- USE &db2
- SELECT 1
- USE &db1
- APPEND FROM &pfs SDF
- GO TOP
- DO WHILE .NOT. EOF()
- cnt = 1
- DO WHILE cnt <> fields + 1
- IF cnt > 9
- temp = STR( cnt, 2 )
- ELSE
- temp = STR( cnt, 1 )
- ENDIF
- var&temp = Field1
- SKIP
- cnt = cnt + 1
- ENDDO
- SELECT &db2
- APPEND BLANK
- cnt = 1
- DO WHILE cnt <> fields + 1
- IF cnt > 9
- temp = STR( cnt, 2 )
- ELSE
- temp = STR( cnt, 1 )
- ENDIF
- IF var&temp <> dum
- REPLACE Field&temp WITH var&temp
- ENDIF
- cnt = cnt + 1
- ENDDO
- SELECT &db1
- ENDDO
- CLOSE DATABASES
- SET TALK ON
- RETURN
- * EOP Pfsxfer.PRG